package com.rawchen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rawchen.entity.VisitRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 访问记录持久层接口
 */
@Mapper
@Repository
public interface VisitRecordMapper extends BaseMapper<VisitRecord> {
	/**
	 * 按天数查询访问记录，按照ID倒叙查询limit条访问记录
	 *
	 * @param limit 要查询的访客记录数
	 */
	List<VisitRecord> getVisitRecordListByLimit(Integer limit);
}
